package cn.ljy.uem.dao;

import cn.ljy.authority.dao.BaseMapper;
import cn.ljy.uem.model.SchoolConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SchoolConfigMapper extends BaseMapper<SchoolConfig> {

    /**
     * 读取有效的配置信息
     * 说明：配置信息同时应该只有一个
     * @return
     */
    @Select("select * from school_config where enable = true")
    SchoolConfig getEnableSchoolConfig();
}
